package sdk
type AlertManager struct {
Config AlertManagerConfig `json:"alertmanager_config"`
TemplateFiles MessageTemplate `json:"template_files"`
}
type ContactPoint struct {
Name string `json:"name"`
GrafanaManagedReceivers []ContactPointType `json:"grafana_managed_receiver_configs,omitempty"`
}
type ContactPointType struct {
UID string `json:"uid,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
DisableResolveMessage bool `json:"disableResolveMessage"`
Settings map[string]interface{} `json:"settings"`
SecureSettings map[string]interface{} `json:"secureSettings,omitempty"`
}
type AlertManagerConfig struct {
Receivers []ContactPoint `json:"receivers"`
Route NotificationPolicies `json:"route"`
Templates []string `json:"templates"`
}
type MessageTemplate map[string]string
type NotificationPolicies struct {
Receiver string `json:"receiver"`
GroupBy []string `json:"group_by,omitempty"`
GroupInterval string `json:"group_interval,omitempty"`
GroupWait string `json:"group_wait,omitempty"`
RepeatInterval string `json:"repeat_interval,omitempty"`
Routes []NotificationRoutingPolicy `json:"routes,omitempty"`
}
type NotificationRoutingPolicy struct {
Receiver string `json:"receiver"`
GroupInterval string `json:"group_interval,omitempty"`
GroupWait string `json:"group_wait,omitempty"`
RepeatInterval string `json:"repeat_interval,omitempty"`
ObjectMatchers []AlertObjectMatcher `json:"object_matchers"`
}
type AlertObjectMatcher [3]string
 |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |